package edu.wuster.blog.entity;

import edu.wuster.blog.interf.AddGroup;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Label {
    private Integer id;

    @NotBlank(message = "标签不能为空",groups = AddGroup.class)
    private String name;

    private Integer blogId;

}
